package com.smartHome.service;

import com.smartHome.pojo.entity.Room;
import com.smartHome.pojo.vo.RoomVO;

import java.util.List;

public interface RoomService {
    //添加房间
    void add(Room room);

    //根据房子id获取房间列表
    List<RoomVO> getByHouseId(Integer id);

    /**
     * 删除房间
     * @param roomId
     */
    void deleteRoomById(Integer roomId);

    /**
     * 获取屋子ID
     * @param roomId
     * @return
     */
    Integer getHouseId(Integer roomId);
}
